<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>用户信息修改</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="author" content="Bluth Company">
    <link rel="shortcut icon" href="/AppStore/Public/assets/ico/favicon.html">
    <link href="/AppStore/Public/assets/css/bootstrap.css" rel="stylesheet">
    <link href="/AppStore/Public/assets/css/theme.css" rel="stylesheet">
    <link href="/AppStore/Public/assets/css/font-awesome.min.css" rel="stylesheet">
    <link href="/AppStore/Public/assets/css/alertify.css" rel="stylesheet">
    <link rel="Favicon Icon" href="favicon.ico">
    <link href="http://fonts.useso.com/css?family=Open+Sans:400,700" rel="stylesheet" type="text/css">
    <link rel="stylesheet" href="/AppStore/Public/bootstrap/css/bootstrap.min.css"/>
    <script src="/AppStore/Public/bootstrap/js/jquery.min.js"></script><!--先引入jquery 再引入js-->
    <script type="text/javascript" src="/AppStore/Public/bootstrap/js/bootstrap.min.js"></script>
</head>
<body>
    <!--自动接收updateUserInfo方法传来的User变量-->
    <form  method="post" action="update" enctype="multipart/form-data">
        <input type="hidden" name="id" value="<?php echo ($user["id"]); ?>"><!--隐藏id-->
        <div class="form-group">
            <label for="username">用户名</label>
            <input type="text" class="form-control" name="username" id="username" placeholder="username" value="<?php echo ($user["username"]); ?>">
        </div>
        <div class="form-group">
            <label for="pass">密码</label>
            <input type="password" class="form-control" name="pass" id="pass" placeholder="Password" value="<?php echo ($user["pass"]); ?>">
        </div>
        <div class="form-group">
            <label for="pass2">确认密码</label>
            <input type="password" class="form-control" name="pass" id="pass2" placeholder="confirm Password" value="<?php echo ($user["pass"]); ?>">
        </div>
        <div class="form-group">
            <label for="email">邮箱</label>
            <input type="email" class="form-control" name="email" id="email" placeholder="Email" value="<?php echo ($user["email"]); ?>">
        </div>
        <div class="form-group">
            <label for="photo">头像</label><img src="/AppStore/Public/Uploads/photo/<?php echo ($user["photo"]); ?>" alt="当前头像不存在"/>
            <input type="file" class="form-control" name="photo" id="photo" placeholder="photo">
        </div>
        <div class="form-group">
            <label for="isstar">明星作者</label>
            <label class="radio-inline">
                <input type="radio" name="isstar" id="isstar"  value="1"
                <?php if($user["isstar"] == 1): ?>checked<?php endif; ?>>是
            </label>
            <label class="radio-inline">
                <input type="radio" name="isstar" id="isstar2"  value="0"
                <?php if($user["isstar"] == 0): ?>checked<?php endif; ?>>否
            </label>

        </div>
        <div class="form-group">
            <label for="state">状态</label>
            <label class="radio-inline">
                <input type="radio" name="state" id="state"  value="0"
                <?php if($user["state"] == 0): ?>checked<?php endif; ?>>普通
            </label>
            <label class="radio-inline">
                <input type="radio" name="state" id="state2"  value="1"
                <?php if($user["state"] == 1): ?>checked<?php endif; ?>>禁言
            </label>
            <label class="radio-inline">
                <input type="radio" name="state" id="state3"  value="2"
                <?php if($user["state"] == 2): ?>checked<?php endif; ?>>禁用
            </label>

        </div>
        <div class="form-group">
            <label for="isfirst">首页推荐</label>
            <label class="radio-inline">
                <input type="radio" name="isfirst" id="isfirst"  value="0"
                <?php if($user["isfirst"] == 0): ?>checked<?php endif; ?>>推荐
            </label>
            <label class="radio-inline">
                <input type="radio" name="isfirst" id="isfirst2"  value="1"
                <?php if($user["isfirst"] == 1): ?>checked<?php endif; ?>>不推荐
            </label>
        </div>
        <div class="form-group">
            <label for="tele">电话</label>
            <input type="tel" class="form-control" name="tele" id="tele" placeholder="tel" value="<?php echo ($user["tele"]); ?>">
        </div>
        <div class="form-group">
            <label for="realname">真是姓名</label>
            <input type="text" class="form-control" name="realname" id="realname" placeholder="realname" value="<?php echo ($user["realname"]); ?>">
        </div>

        <div class="form-group">
            <label>介绍</label>
            <textarea class="form-control" name="intro" rows="5" placeholder="intro" ><?php echo ($user["intro"]); ?></textarea>
        </div>
        <button type="submit" class="btn btn-default">Submit</button>
    </form>
    <script type="text/javascript" src="/AppStore/Public/assets/js/jquery.min.js"></script>
    <script type="text/javascript" src="/AppStore/Public/assets/js/jquery-ui.min.js"></script>
    <script type="text/javascript" src="/AppStore/Public/assets/js/raphael-min.js"></script>
    <script type="text/javascript" src="/AppStore/Public/assets/js/bootstrap.js"></script>
    <script type="text/javascript" src='/AppStore/Public/assets/js/sparkline.js'></script>
    <script type="text/javascript" src='/AppStore/Public/assets/js/morris.min.js'></script>
    <script type="text/javascript" src="/AppStore/Public/assets/js/jquery.dataTables.min.js"></script>
    <script type="text/javascript" src="/AppStore/Public/assets/js/jquery.masonry.min.js"></script>
    <script type="text/javascript" src="/AppStore/Public/assets/js/jquery.imagesloaded.min.js"></script>
    <script type="text/javascript" src="/AppStore/Public/assets/js/jquery.facybox.js"></script>
    <script type="text/javascript" src="/AppStore/Public/assets/js/jquery.alertify.min.js"></script>
    <script type="text/javascript" src="/AppStore/Public/assets/js/jquery.knob.js"></script>
    <script type='text/javascript' src='/AppStore/Public/assets/js/fullcalendar.min.js'></script>
    <script type='text/javascript' src='/AppStore/Public/assets/js/jquery.gritter.min.js'></script>
    <script type="text/javascript" src="/AppStore/Public/assets/js/realm.js"></script>
</body>
</html>